package com.xhsj.user.cram.entity;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.xhsj.user.hr.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 机房出入申请
 * </p>
 *
 * @author liuqinghua
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_computer_room_access_apply")
public class TbComputerRoomAccessApply extends BaseEntity<TbComputerRoomAccessApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 节点id
     */
    @TableField("node_id")
    private Long nodeId;

    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    /**
     * 事由
     */
    @TableField("reason")
    private String reason;

    /**
     * 进入时间
     */
    @TableField("entry_time")
    @JsonFormat(timezone = "GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime entryTime;

    /**
     * 出去时间
     */
    @TableField("out_time")
    @JsonFormat(timezone = "GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime outTime;


}
